package com.sky.skyopsserver.vos;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 更新机房请求VO
 * 
 * @author Administrator
 * @since 2025-01-17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ComputerRoomUpdateReqVO {
    
    /**
     * 主键唯一ID
     */
    @NotNull(message = "机房ID不能为空")
    @Positive(message = "机房ID必须为正数")
    private Long id;
    
    /**
     * 机房名称
     */
    @NotBlank(message = "机房名称不能为空")
    @Size(max = 255, message = "机房名称长度不能超过255个字符")
    private String name;
    
    /**
     * 所处城市
     */
    @NotBlank(message = "所处城市不能为空")
    @Size(max = 255, message = "城市名称长度不能超过255个字符")
    private String city;
    
    /**
     * 运营商
     */
    @NotBlank(message = "运营商不能为空")
    @Size(max = 255, message = "运营商名称长度不能超过255个字符")
    private String operator;
    
    /**
     * 备注
     */
    @Size(max = 255, message = "备注长度不能超过255个字符")
    private String remark;
}